<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<body>

<!--<form id="frmTest" action="#">-->
<!--    <input type="checkbox" name="0" value="大">大-->
<!--    <input type="checkbox" name="0" value="小">小-->
<!--    <input type="checkbox" name="0" value="单">单-->
<!--    <input type="checkbox" name="0" value="双">双<br>-->
<!--    <input id="dd">-->
<!--    <input type="button" onclick="aa()" value="提交">-->
<!--</form>-->

<form >
    总&ensp;和：
    <input type="radio" value="总和;大" name="demo">大
    <input type="radio" value="总和;小" name="demo">小
    <input type="radio" value="总和;单" name="demo">单
    <input type="radio" value="总和;双" name="demo">双<br>
    数字1：
    <input type="radio" value="数字1;大" name="demo">大
    <input type="radio" value="数字1;小" name="demo">小
    <input type="radio" value="数字1;单" name="demo">单
    <input type="radio" value="数字1;双" name="demo">双<br>
    数字2：
    <input type="radio" value="数字2;大" name="demo">大
    <input type="radio" value="数字2;小" name="demo">小
    <input type="radio" value="数字2;单" name="demo">单
    <input type="radio" value="数字2;双" name="demo">双<br>
    数字3：
    <input type="radio" value="数字3;大" name="demo">大
    <input type="radio" value="数字3;小" name="demo">小
    <input type="radio" value="数字3;单" name="demo">单
    <input type="radio" value="数字3;双" name="demo">双<br>
    金额：<input id="money">
    <input type="button" value="提交" onclick="insertBet()">
</form>

</body>
<script>

 function aa() {
     var aa = document.getElementsByClassName(0);
     console.log(aa)
 }
 function insertBet(){
     var demo=$("form>input[name='demo']:checked").val();
     var money = document.getElementById("money").value;
     var elementById = document.getElementById("money");
     var site = demo.slice(0,-2);
     var type = demo.slice(-1);
     var bet = money;

     var obj = {
         number: "",
         site: site,
         type: type,
         bet: bet,
     }
     console.log(site)
     console.log(type)
     console.log(bet)

 }


</script>
</html>